package com.ocl.www.service;

import com.ocl.www.domain.LyUserchat;
import com.ocl.www.mapper.LyUserchatMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Vector;

/**
 * Created by Administrator on 2017/6/17.
 */
@Service
public class LyUserchatService {

    @Autowired
    private LyUserchatMapper lyUserchatMapper;

    public int insertlyUserchat(LyUserchat lyUserchat)throws Exception{

        int c = lyUserchatMapper.insertlyUserchat(lyUserchat);

        return c;
    }

    public Vector<LyUserchat> selectlyUserchatList(LyUserchat lyUserchat)throws  Exception{

        return lyUserchatMapper.selectlyUserchatList(lyUserchat);


    }
}
